package cn.com.demo.microservice.consumer.service.impl;

import cn.com.demo.microservice.consumer.service.IRoleService;
import cn.com.demo.microservice.consumer.service.feign.IRleFeginService;
import cn.com.demo.microservice.reps.ResponseObject;
import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class RoleServiceImpl implements IRoleService {
    private IRleFeginService iRleFeginService;
    @Override
    @Transactional
    @LcnTransaction
    public boolean deteleById(int id) {
       boolean is = false ;
       ResponseObject res  = this.iRleFeginService.deleteRole(id);
       is = res.getCode()==20000;
       return is;
    }
}
